package com.aaa.jvmtest.classload.init;

/**
 * 初始化测试
 *
 * @author Tu
 * @date 2022/9/4 17:57
 */
public class InitTest {
    public static void main(String[] args) {
        System.out.println(E.a);
        System.out.println(E.b);
        //Integer 会导致初始化，因为要在字节码底层中进行自动装箱
        System.out.println(E.c);
    }
}

class E {
    static final int a = 2;
    static final String b = "3";
    static final Integer c = 4;
}
